<?php

include './common/functions.php';
include_once './common/Db.class.php';

session_start();

$data = $_POST;

$data['uid'] = $_SESSION['uid'];

$data['ctime'] = time();
//增加留言
$db = new Db('msg');

$db->save($data);

header("Location:./index.php");


